Skip to content

Upgrade OpenAPI dependencies and use pb33f YAML and testify - #186

Merged
daveshanley merged 3 commits into
mainfrom
codex/pb33f-dependency-upgrade
Oct 17, 2026
Merged

daveshanley merged 3 commits into
mainfrom
codex/pb33f-dependency-upgrade

Conversation

@daveshanley

@daveshanley daveshanley commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Upgrade Wiretap's OpenAPI dependencies and move all direct YAML and test assertion imports to pb33f modules.

  • libopenapi v0.41.6, libopenapi-validator v0.16.1, go-yaml v0.1.1, and testify v0.1.1.
  • Doctor v0.0.83 and libasyncapi v0.0.4 replace unreleased commit pins. JSON Schema validation now uses github.com/pb33f/jsonschema/v6 v6.0.3.
  • Set the Go minimum, CI toolchain, and Docker builder to Go 1.26.
  • Protect the shared mock renderer with a per-engine mutex. The upgraded UUID generator uses mutable random state; concurrent normal and 401 mock responses otherwise race. Request validation remains outside the lock.
  • Test YAML aliases, route order, invalid field types, and concurrent successful/unauthorized UUID responses.

Validation: full Go tests, vet, binary build, module verification, CLI help and OpenAPI dry run. Race tests cover configuration, mocking, validation, daemon, HAR, and spec packages. The new concurrent UUID regression failed under the race detector before the fix and passed after it. Independent correctness and de-slop reviews found no remaining defects. CI verifies the daemon, monitor UI, and both Docker architectures.

Risk: medium. This changes shared parsing/validation libraries and requires Go 1.26. Rendering is serialized within each mock engine to protect its random state. Ranch and Viper still bring upstream testify/YAML v3 modules into the indirect dependency graph; Wiretap's direct imports use pb33f.

@daveshanley
daveshanley marked this pull request as ready for review October 6, 2026 13:04
@daveshanley
daveshanley merged commit 409a92b into main Oct 17, 2026
3 checks passed
@daveshanley daveshanley changed the title Upgrade OpenAPI dependencies and use pb33f YAML and testify Upgrade pb33f dependencies and fix npm security vulnerabilities Oct 17, 2026
@daveshanley daveshanley changed the title Upgrade pb33f dependencies and fix npm security vulnerabilities Upgrade OpenAPI dependencies and use pb33f YAML and testify Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant